package com.yuewen.permissioncheck.asm.checker;

/**
 * Mac
 *
 * @author zhanglulu
 */
public class GetMacPermission extends BasePermission {
  @Override
  boolean check(InvokeParam param) {
    return "getMacAddress".equals(param.methodName)
      && "()Ljava/lang/String;".equals(param.methodDesc)
      && "android/net/wifi/WifiInfo".equals(param.methodOwnClass);
  }

  @Override
  String invokeHookMethodName() {
    return "invokeGetMacAddress";
  }
}
